<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 视频分类
 * Class VideoCategory
 * @package App\Models
 */
class VideoCategory extends Model
{
    const STATUS_YES=1;
    const STATUS_NO=2;
    protected $table = 'video_category';
    public $timestamps = false;
    protected $connection = 'mysql1'; //指明你要使用的连接


    public function vedios()
    {
        return $this->hasMany('App\Models\VideoData','id', 'cate_id');
    }
}
